home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lpr / lp.local.h < prev    next >
C/C++ Source or Header  |  1990-02-16  |  3KB  |  108 lines

  1. /*
  2.  * Copyright (c) 1983 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that this notice is preserved and that due credit is given
  7.  * to the University of California at Berkeley. The name of the University
  8.  * may not be used to endorse or promote products derived from this
  9.  * software without specific prior written permission. This software
  10.  * is provided ``as is'' without express or implied warranty.
  11.  *
  12.  *    @(#)lp.local.h    5.2 (Berkeley) 5/5/88
  13.  */
  14.  
  15. /*
  16.  * Possibly, local parameters to the spooling system
  17.  */
  18.  
  19. /*
  20.  * Magic number mapping for binary files, used by lpr to avoid
  21.  *   printing objects files.
  22.  */
  23.  
  24. #include <a.out.h>
  25. #include <ar.h>
  26. #ifdef sprite
  27. #include <sys/param.h>
  28. #endif
  29.  
  30. #ifndef A_MAGIC1    /* must be a VM/UNIX system */
  31. #    define A_MAGIC1    OMAGIC
  32. #    define A_MAGIC2    NMAGIC
  33. #    define A_MAGIC3    ZMAGIC
  34. #    undef ARMAG
  35. #    define ARMAG    0177545
  36. #endif
  37.  
  38. /*
  39.  * Defaults for line printer capabilities data base
  40.  */
  41. #define    DEFLP        "lp"
  42. #define DEFLOCK        "lock"
  43. #define DEFSTAT        "status"
  44. #define    DEFSPOOL    "/usr/spool/lpd"
  45. #define    DEFDAEMON    "/usr/lib/lpd"
  46. #define    DEFLOGF        "/dev/console"
  47. #define    DEFDEVLP    "/dev/lp"
  48. #define DEFRLPR        "/usr/lib/rlpr"
  49. #define DEFBINDIR    "/usr/ucb"
  50. #define    DEFMX        1000
  51. #define DEFMAXCOPIES    0
  52. #define DEFFF        "\f"
  53. #define DEFWIDTH    132
  54. #define DEFLENGTH    66
  55. #define DEFUID        1
  56.  
  57. /*
  58.  * When files are created in the spooling area, they are normally
  59.  *   readable only by their owner and the spooling group.  If you
  60.  *   want otherwise, change this mode.
  61.  */
  62. #define FILMOD        0660
  63.  
  64. /*
  65.  * Printer is assumed to support LINELEN (for block chars)
  66.  *   and background character (blank) is a space
  67.  */
  68. #define LINELEN        132
  69. #define BACKGND        ' '
  70.  
  71. #define HEIGHT    9        /* height of characters */
  72. #define WIDTH    8        /* width of characters */
  73. #define DROP    3        /* offset to drop characters with descenders */
  74.  
  75. /*
  76.  * path name of files created by lpd.
  77.  */
  78. #ifdef sprite
  79. char masterLock[MAXPATHLEN];
  80. char pdevName[MAXPATHLEN];
  81. #else
  82. #define MASTERLOCK "/usr/spool/lpd.lock"
  83. #define SOCKETNAME "/dev/printer"
  84. #endif
  85.  
  86. /*
  87.  * Some utilities used by printjob.
  88.  */
  89. #ifdef sprite
  90. #define PR        "/sprite/cmds/pr"
  91. #define MAIL        "/sprite/cmds/sendmail"
  92. #else
  93. #define PR        "/bin/pr"
  94. #define MAIL        "/usr/lib/sendmail"
  95. #endif
  96.  
  97. /*
  98.  * Define TERMCAP if the terminal capabilites are to be used for lpq.
  99.  */
  100. #define TERMCAP
  101.  
  102. /*
  103.  * Maximum number of user and job requests for lpq and lprm.
  104.  */
  105. #define MAXUSERS    50
  106. #define MAXREQUESTS    50
  107.  
  108.